package com.hrm.salarys.dao;

import com.hrm.domain.salarys.SalaryArchive;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.PagingAndSortingRepository;

import java.util.List;

public interface SalaryArchiveDao extends PagingAndSortingRepository<SalaryArchive,String>, CrudRepository<SalaryArchive,String>, JpaRepository<SalaryArchive,String>, JpaSpecificationExecutor<SalaryArchive> {

    SalaryArchive finbByCompanyIdAndYearsMonth(String companyId, String yearMonth);

    List<SalaryArchive> findByCompanyId(String companyId);
}
